package com.hkts.naturalgasauthentication.base.entity;

import com.hkts.naturalgasauthentication.common.constant.CommonConstant;
import lombok.Data;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.Table;
import java.math.BigDecimal;

/**
 * @ClassNameDepartment
 * @Description
 * @Author yck
 * @Date2020-12-22 15:51
 * @Version V1.0
 **/
@Data
@Entity
@Table(name = "t_department")
public class Department {

    private static final long serialVersionUID = 1L;
    @Id
    @Column(name = "id")
    private String id;

    private String title;

    private String parentId;

    private Boolean isParent = false;


    @Column(precision = 10, scale = 2)
    private BigDecimal sortOrder;


    private Integer status = CommonConstant.STATUS_NORMAL;
}
